package org.code.mallspringboot.service.impl;

import org.code.mallspringboot.mapper.PmsMemberPriceMapper;
import org.code.mallspringboot.pojo.PmsMemberPrice;
import org.code.mallspringboot.service.PmsMemberPriceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */
@Service
public class PmsMemberPriceServiceImpl implements PmsMemberPriceService{

    @Autowired
    private PmsMemberPriceMapper pmsMemberPriceMapper;

    @Override
    public List<PmsMemberPrice> selectAll(int id) {
        return pmsMemberPriceMapper.selectAll(id);
    }

    @Override
    public int delete(int productId) {
        return pmsMemberPriceMapper.delete(productId);
    }

    @Override
    public int addAll(PmsMemberPrice pmsMemberPrice) {
        return pmsMemberPriceMapper.addAll(pmsMemberPrice);
    }
}




